#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include"changeuserwidget.h"
#include"removeuserwidget.h"
#include "led_bee_fan_widget.h"
#include "icebearledwidget.h"
#include "light_temphum_widget.h"
#include "mqtt.h"
namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    //    explicit MainWidget(QWidget *parent = nullptr);
    explicit MainWidget(QWidget *login);
    ~MainWidget();
private:
    Ui::MainWidget *ui;
    ChangeUserWidget *changeUserWidget;
    RemoveUserWidget *removeUserWidget;
    led_bee_fan_Widget *led_bee_fan_widget;
    IceBearLedWidget *sled_key_widget;
    Mqtt *mqttWidget;
    Light_TempHum_Widget *lightTempWidget;
    QWidget *login;//登录界面
private slots:
    void on_pushButton_change_clicked();
    void on_pushButton_remove_clicked();
    void on_pushButton_2_clicked();
    void on_pushButton_3_clicked();
    void on_pushButton_4_clicked();
    void on_pushButton_clicked();
};

#endif // MAINWIDGET_H
